/*#xxx {*/
/*    border: 1px solid red;*/
/*    width: 100px;*/
/*    height: 100px;*/
/*    position: absolute;*/
/*}*/
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}
.parent {
    border: 1px solid red;
    width: 200px;
    height: 400px;
    margin-left: 100px;
    display: inline-block;
}
.son {
    border: 1px solid green;
    width: 100px;
    height: 100px;
    margin: 0 auto;
}
.son:not(:first-child) {
    margin-top: -50px;
}
.son:nth-child(2n+1) {
    background-color: red;
}
.son:nth-child(2n) {
    background-color: yellow;
}
.son {
    transition: position 2s linear;
}

#id-div-solitaire-container {
    /*width: 200px;*/
    /*height: 400px;*/
    /*top: 0;*/
    /*left: 0;*/
    user-select: none;
    position: absolute;
    /*top: 50%;*/
    /*left: 50%;*/
    /*transform: translate(-50%, -50%);*/
}
#id-div-poker-container.active {
    border: 1px solid green;
    width: 100px;
    height: 400px;
}
.img-wrapper {
    border: 1px solid red;
    display: inline-block;
    padding: 200px;
    background-color: red;
}
.poker{
    width: 80px;
    display: inline-block;
    border-radius: 3px;
    margin-right: 20px;
    height: 103px;
    position: absolute;
    z-index: 0;
    user-select: none;
    cursor: pointer;

}
.poker.open {
    background-color: #fff;
    border: 1px solid lightgray;
    border-radius: 10px;
}
.poker.smooth-move {
    transition: all 0.2s linear;
}
.poker.high-light {
    box-shadow: 0 0 6px 1px yellow;
}
.solitaire-table {
    width: 900px;
    height: 570px;
    background: url('image/desktop.jpg') no-repeat;
}
.poker-stack-line {
    margin-top: 80px;
    float: right;
    width: 702px;
    user-select: none;

}
.poker-stack {
    width: 80px;
    border-radius: 10px;
    margin-right: 20px;
    height: 103px;
    background: url("image/bottom_card_bg.png") no-repeat;
    background-size: contain;
    float: left;
    user-select: none;
}
.poker-stack.incomplete {
    background: url("image/card_bg.png") no-repeat;
    background-size: contain;
}
.completed-stack-wrapper {
    float: right;
}
.poker-stack-line > .poker-stack.random , .random-open{
    float: left;
}
.poker-stack-line > .poker-stack.random {
    background: grey;
    border-radius: 12px;
    box-shadow: -5px -5px 0 0 grey;
}
.poker-stack.random-open {
    background: none;
}
.poker-stack-line:nth-child(2) > .poker-stack {
    float: left;
}
.clearfix::after {
    display: block;
    content: '';
    clear: both;
}
.poker-stack-line:nth-child(2) {
    margin-top: 30px;
}
.poker.twinkle, .poker-stack.twinkle{
    animation: twinkle 0.3s linear infinite;
}
.operation-wrapper {
    position: absolute;
    top: 300px;
    left: 30px;
    border: 4px solid rgb(174, 89, 41);
    background-color: rgb(174, 89, 41);
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgb(71, 41, 11);

}
.operation-wrapper > .button {
    width: 80px;
    padding: 10px 20px;
    white-space: nowrap;
    display: flex;
    justify-content: center;
    align-items: center;

    background-color: rgba(0, 128, 4, 1);

    /*background-color: lightblue;*/
    font-weight: bold;
    font-size: 20px;
    color: white;
    border-radius: 3px 3px 0 0;
    box-shadow: 1px 0 0 1px black;
    /*text-decoration-style: wavy;*/
}
.operation-wrapper > .button:nth-child(2) {
    /*background-color: rgba(211, 85, 0, 1);*/
    background-color: rgba(211, 155, 0, 1);

    border-top: 1px solid white;
    border-radius: 0px 0px 3px 3px;
    /*background-color: lightgreen;*/
}
#id-div-you-win {
    width: 400px;
    height: 100px;
    font-size: 80px;
    font-weight: bold;
    text-align: center;
    line-height: 100px;
    color: red;
    white-space: nowrap;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: 0 auto;
    border-radius: 20px;
    transform: skew(-30deg)  translate(-50%, -50%);
    text-decoration: #1198ff;
    display: none;
}
#id-div-you-win.show {
    display: block;
}
#id-img-you-win {
    position: absolute;
    top: 50%;
    left: 50%;
    margin: 0 auto;
    border-radius: 20px;
    transform: translate(-50%, -50%);
    width: 400px;
}
#id-div-bgm {
    position: absolute;
    width: 30px;
    height: 30px;
    left: 10px;
    bottom: 10px;
    background-image: url("image/play.png");
    background-size: contain;
}
#id-div-bgm.pause {
    background-image: url("image/pause.png");
}

@keyframes twinkle {
    0% {
        box-shadow: 0 0 8px 2px transparent;
    }
    100% {
        box-shadow: 0 0 8px 2px yellow;
    }
}
